from settings import Settings
from ship import Ship
import game_functions as gf

import pygame


def run_game ():
    pygame.init()
    alien_settings = Settings()

    screen = pygame.display.set_mode((alien_settings.screen_width, alien_settings.screen_height))
    ship = Ship(screen)
    
    pygame.display.set_caption("Alien Invasion")

    while True:
        gf.check_evnets(ship)
        gf.update_screen(alien_settings, screen, ship)


run_game()